package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.LeaderMapper;
import com.ruoyi.system.domain.Leader;
import com.ruoyi.system.service.ILeaderService;

/**
 * 领导风采Service业务层处理
 * 
 * @author vv
 * @date 2025-06-28
 */
@Service
public class LeaderServiceImpl implements ILeaderService 
{
    @Autowired
    private LeaderMapper leaderMapper;

    /**
     * 查询领导风采
     * 
     * @param id 领导风采主键
     * @return 领导风采
     */
    @Override
    public Leader selectLeaderById(Integer id)
    {
        return leaderMapper.selectLeaderById(id);
    }

    /**
     * 查询领导风采列表
     * 
     * @param leader 领导风采
     * @return 领导风采
     */
    @Override
    public List<Leader> selectLeaderList(Leader leader)
    {
        return leaderMapper.selectLeaderList(leader);
    }

    /**
     * 新增领导风采
     * 
     * @param leader 领导风采
     * @return 结果
     */
    @Override
    public int insertLeader(Leader leader)
    {
        return leaderMapper.insertLeader(leader);
    }

    /**
     * 修改领导风采
     * 
     * @param leader 领导风采
     * @return 结果
     */
    @Override
    public int updateLeader(Leader leader)
    {
        return leaderMapper.updateLeader(leader);
    }

    /**
     * 批量删除领导风采
     * 
     * @param ids 需要删除的领导风采主键
     * @return 结果
     */
    @Override
    public int deleteLeaderByIds(Integer[] ids)
    {
        return leaderMapper.deleteLeaderByIds(ids);
    }

    /**
     * 删除领导风采信息
     * 
     * @param id 领导风采主键
     * @return 结果
     */
    @Override
    public int deleteLeaderById(Integer id)
    {
        return leaderMapper.deleteLeaderById(id);
    }
}
